package com.smt.modules.bus.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.smt.common.base.BaseEntity;
import com.smt.modules.bus.dao.InviteDao;
import lombok.Data;

import java.util.Date;

/**
 * 邀请表
 *
 * @author zhangyi
 * @date 2018/11/2 9:21
 */
@Data
@TableName("bus_invite")
public class InviteEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @TableId
    private Long id;

    /**
     * 邀请加入的团队id
     */
    private Long teamId;
    /**
     * 邀请者
     */
    private String toUser;
    /**
     * 被邀请者
     */
    private String fromUser;
    /**
     * 操作状态
     */
    private Integer isOperate;
    /**
     * 创建时间
     */
    private Date createTime;

    public InviteEntity(Long teamId, String toUser, String fromUser, Integer isOperate, Date createTime) {
        this.teamId = teamId;
        this.toUser = toUser;
        this.fromUser = fromUser;
        this.isOperate = isOperate;
        this.createTime = createTime;
    }
    public InviteEntity(){}


    /**
     * 项目名称
     */
    @TableField(exist = false)
    private String projectName;

    /**
     * 手机联系方式
     */
    private String toUserContact;
}
